package com.ethan.minimalist.mvp.model

import com.cxz.kotlin.baselibs.mvp.BaseModel
import com.ethan.minimalist.http.MainRetrofit
import com.ethan.minimalist.bean.HttpResult
import com.ethan.minimalist.bean.UserBean
import com.ethan.minimalist.mvp.contract.ILoginContract
import io.reactivex.Observable

/**
 * @author admin
 * @date 2018/11/20
 * @desc
 */
class LoginModel : BaseModel(), ILoginContract.Model {

    override fun login(username: String, password: String): Observable<HttpResult<UserBean>> {
        return MainRetrofit.service.login(username, password,"android")
    }

}